﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 计算器
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            double x = Convert.ToDouble(textBox1.Text);
            double y = Convert.ToDouble(textBox2.Text);
            double s = x * y;
            textBox3.Text = s.ToString();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            double x = Convert.ToDouble(textBox1.Text);
            double y = Convert.ToDouble(textBox2.Text);
            double s = x / y;
            textBox3.Text = s.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            double x = Convert.ToDouble(textBox1.Text);
            double y = Convert.ToDouble(textBox2.Text);
            double s = x + y;
            textBox3.Text = s.ToString();

        }

        private void button2_Click(object sender, EventArgs e)
        {
            double x = Convert.ToDouble(textBox1.Text);
            double y = Convert.ToDouble(textBox2.Text);
            double s = x - y;
            textBox3.Text = s.ToString();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Boolean flag = true;
            double x = 0;
            double y = 0;
            bool dot = false;
            string sign = "";
            public Form1()
            {
                InitializeComponent();
            }

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }
    }
}
